// import React from 'react'
// import TestUseReducer from './testUseReducer'
// export default function testUseContext() {
//   return (
//     <div >
//       子组件点击数量：<TestUseReducer></TestUseReducer>
//     </div>
//   )
// }

// import React from 'react'
import TestUseReducer from './testUseReducer'
// export default function testUseContext() {
//   return (
//     <div>
//       子
//       <TestUseReducer></TestUseReducer>
//     </div>
//   )
// }
import React, { Component } from 'react'
import  AppContext from '../useContext/style'

export default class TestUseContext extends Component {
   static contextType = AppContext
  
  render() {
    console.log(this.context)
    return (
      <div>
        子
        <TestUseReducer></TestUseReducer>
      </div>
    )
  }
}
